package com.matt.domain;

import com.matt.foundation.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "tb_contract_freeze")
@Data
@EqualsAndHashCode(callSuper = true)
public class ContractFreeze extends Model {

    @Column(columnDefinition = "varchar(32)  COMMENT '创建人'")
    private String created;

    @Column(columnDefinition = "datetime  COMMENT '创建时间'")
    private Date createTime;
    
    @Column(columnDefinition = "int default 0 COMMENT '是否删除 0：未删除 1：已删除'")
    private Integer deleted;
   
    @Column(columnDefinition = "varchar(32) COMMENT '园区id'")
    private String areaId;

    @Column(columnDefinition = "varchar(32) COMMENT '客户id'")
    private String clienteleId;

    @Column(columnDefinition = "varchar(255) COMMENT '客户姓名'")
    private String clienteleName;

    @Column(columnDefinition = "varchar(32) COMMENT '合同id'")
    private String contractId;
    
    @Column(columnDefinition = "datetime COMMENT '原合同开始时间'")
    private Date contractBeginDate;
    
    @Column(columnDefinition = "datetime COMMENT '原合同结束时间'")
    private Date contractEndDate;
    
    @Column(columnDefinition = "datetime COMMENT '冻结开始时间'")
    private Date freezeBeginDate;
    
    @Column(columnDefinition = "datetime COMMENT '冻结结束时间'")
    private Date freezeEndDate;

    @Column(columnDefinition = "varchar(2048) COMMENT '冻结原因'")
    private String content;
    
    @Column(columnDefinition = "int default 0 COMMENT '状态 0：进行中 1：已完成'")
    private Integer status;
}
